<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:composite="http://java.sun.com/jsf/composite">

<composite:interface>
</composite:interface>

<composite:implementation>
	<p:dataTable id="#{cc.id}" var="operator"
		value="#{operatorsMB.operators}" rowKey="#{operator.id}"
		selectionMode="single" emptyMessage="No se han encontrado operarios"
		filteredValue="#{operatorsMB.operatorsFiltrados}"
		rowsPerPageTemplate="5,10,15"
		selection="#{operatorsMB.selectedOperator}">
		<p:ajax event="rowSelect" listener="#{operatorsMB.rowSelected}" />

		<p:column id="nombrecol" filterBy="#{operator.firstname}"
			headerText="Nombre" filterMatchMode="contains">
			<h:outputText value="#{operator.firstname}" />
		</p:column>
		<p:column id="descCol" filterBy="#{operator.lastname}"
			headerText="Apellido" filterMatchMode="contains">
			<h:outputText value="#{operator.lastname}" />
		</p:column>
	</p:dataTable>
</composite:implementation>

</html>